package net.lab1024.sa.admin.module.business.tz.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 通知 新建表单
 *
 * @Author syf
 * @Date 2025-06-03 17:53:30
 * @Copyright 畅想科技
 */

@Data
public class TzAddForm {

    @Schema(description = "通知序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "通知序号 不能为空")
    private Integer id;

    @Schema(description = "通知内容")
    private String noticeContent;
    @Schema(description = "通知内容(html)")
    private String contentHtml;
    @Schema(description = "通知标题")
    private String noticeTitle;

    @Schema(description = "通知范围：学校编号")
    private Long noticeRange;

    @Schema(description = "通知对象：0:用户，1:接单员，2：商家，3：全体")
    private Long noticeTo;

    @Schema(description = "来源")
    private String source;

    @Schema(description = "是否定时发布", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否定时发布 不能为空")
    private Boolean scheduledPublishFlag;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "作者")
    private String author;

}